package cn.tb.pet.domain;


import cn.tb.basic.domain.BaseDomain;
import cn.tb.org.domain.Department;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author tangbo
 * @since 2022-06-25
 */
@Data
public class PetType extends BaseDomain {

    private static final long serialVersionUID = 1L;

    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)  //集合不为空才返回
    private List<PetType> children = new ArrayList<>();



}
